﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Streambolics.PtBurn.Gui
{
    public partial class PtBurnJobDetailDialog : Streambolics.Gui.PropertyDialog
    {
        private PtBurnJob _Job;

        public static void Show (PtBurnJob aJob)
        {
            PtBurnJobDetailDialog d = new PtBurnJobDetailDialog ();
            d.Job = aJob;
            d.ShowDialog ();
        }

        public PtBurnJobDetailDialog ()
        {
            InitializeComponent ();
        }

        public PtBurnJob Job
        {
            get
            {
                return _Job;
            }
            set
            {
                if (value != _Job)
                {
                    _Job = value;
                    Redisplay ();
                }
            }
        }

        private void Redisplay ()
        {
            ShowObject (_Job);
        }
    }
}
